﻿@{
    ViewBag.Title = "ServiceMaintenance";
    ViewBag.Header = "Service";
}

@model Nickron.Database.Service

@using (Html.BeginForm("ServiceMaintenance", "Service", FormMethod.Post, new { onsubmit = "return ValidateForm();" }))
{

    <div class="col-md-12">

        <div class="box box-danger">
            <div class="box-body">
                <div class="form-group">
                    <label> IMEI NO:</label><span class="astrisk">*</span>
                    <div class="input-group">
                        <div class="input-group-addon">
                            <i class="search-form"></i>
                        </div>
                        <input id="IMEI1" name="IMEI1" maxlength="50" type="text" class="form-control" />
                    </div><!-- /.input group -->
                </div><!-- /.form group -->

                <div>
                    <div class="box-footer">
                        <button type="reset" class="btn btn-primary" style=" width:80px;">Search</button>
                    </div>
                </div><!-- /.box -->

            </div><!-- /.box-body -->
        </div><!-- /.box -->
    </div><!-- /.col (left) -->

    <div class="col-md-6">

        <div class="box box-danger">
            <div class="box-body">

                <div class="form-group">
                    <label>&nbsp;&nbsp; Mobile and Customer Details</label>
                    <br /><br />
                    <div class="input-group">
                        <label id="ImeiNo2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;IMI NO&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:&nbsp;&nbsp;&nbsp; 0123456789 </label>
                    </div><!-- /.input group -->
                </div><!-- /.form group -->

                <div class="form-group">
                    <div class="input-group">
                        <label id="ImeiNo2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sales On &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:&nbsp;&nbsp;&nbsp; 12/07/2014 </label>
                    </div><!-- /.input group -->
                </div><!-- /.form group -->

                <div class="form-group">
                    <div class="input-group">
                        <label id="ImeiNo2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Service Expire &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:&nbsp;&nbsp;&nbsp; 12/07/2015 </label>
                    </div><!-- /.input group -->
                </div><!-- /.form group -->
                <div class="form-group">
                    <div class="input-group">
                        <label id="ImeiNo2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Model Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:&nbsp;&nbsp;&nbsp; Nokia Lumiya 630</label>
                    </div><!-- /.input group -->
                </div><!-- /.form group -->
                <div class="form-group">
                    <div class="input-group">
                        <label id="ImeiNo2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Model Type&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:&nbsp;&nbsp;&nbsp; Nokia </label>
                    </div><!-- /.input group -->
                </div><!-- /.form group -->



            </div><!-- /.box-body -->
        </div><!-- /.box -->
    </div>

    <div class="col-md-6">
        <div class="box box-primary">

            <div class="box-body">

                <div class="form-group">
                    <br /><br />
                    <div class="input-group">
                        <label id="ImeiNo2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Customer Id &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:&nbsp;&nbsp;&nbsp; C1105 </label>
                    </div><!-- /.input group -->
                </div><!-- /.form group -->
                <div class="form-group">
                    <div class="input-group">
                        <label id="ImeiNo2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Customer Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:&nbsp;&nbsp;&nbsp; Gowtham.M</label>
                    </div><!-- /.input group -->
                </div><!-- /.form group -->
                <div class="form-group">
                    <div class="input-group">
                        <label id="ImeiNo2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Last Service Date&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:&nbsp;&nbsp;&nbsp; 25/04/2014</label>
                    </div><!-- /.input group -->
                </div><!-- /.form group -->
                <div class="form-group">
                    <div class="input-group">
                        <label id="ImeiNo2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Last Service Type&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:&nbsp;&nbsp;&nbsp; Service Type 3</label>
                    </div><!-- /.input group -->
                </div><!-- /.form group -->
                <div class="form-group">
                    <div class="input-group">
                        <label id="ImeiNo2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;No.of Time Service&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:&nbsp;&nbsp;&nbsp; 1</label>
                    </div><!-- /.input group -->
                </div><!-- /.form group -->





            </div><!-- /.box-body -->
        </div><!-- /.box -->


    </div>

    <div class="col-md-12">

        <div class="box box-danger">
            <div class="box-body">

                <div class="form-group">
                    <label> Service Center:</label>
                    <div class="input-group">
                        <div class="input-group-addon">
                            <i class=""></i>
                        </div>
                        <select id="Servicecenter" name="Servicecenter" class="form-control">
                            <option value="0">---Select---</option>
                            <option value="0">Tambaram</option>
                            <option value="0">Thirupathi</option>
                            <option value="0">Chennai</option>
                            <option value="0">Nelluor</option>
                            <option value="0">Madurai</option>
                            <option value="0">Kanchipuram</option>
                        </select>
                    </div><!-- /.input group -->
                </div><!-- /.form group -->

                <div class="form-group">
                    <label> Service Type:</label>
                    <div class="input-group">
                        <div class="input-group-addon">
                            <i class=""></i>
                        </div>
                        <select id="Servicetype" name="Servicetype" class="form-control">
                            <option value="0">---Select---</option>
                            <option value="0">Display Service</option>
                            <option value="0">Speaker Service</option>
                            <option value="0">Touch Problem Service</option>
                            <option value="0">Keypad Service</option>
                            <option value="0">Material Bourn Service</option>
                            <option value="0">Other Software Service</option>
                        </select>
                    </div><!-- /.input group -->
                </div><!-- /.form group -->

                <div class="form-group">
                    <label> Faults:</label>
                    <div class="input-group">
                        <div class="input-group-addon">
                            <i></i>
                        </div>
                        <input id="Faults" name="Faults" type="text" maxlength="250" class="form-control pull-right" />
                    </div><!-- /.input group -->
                </div><!-- /.form group -->

                <div class="form-group">
                    <label> Accessories:</label>
                    <div class="input-group">
                        <div class="input-group-addon">
                            <i></i>
                        </div>
                        <textarea id="Accessories" name="Accessories" maxlength="500" class="form-control pull-right"></textarea>
                    </div><!-- /.input group -->
                </div><!-- /.form group -->

                <div class="form-group">
                    <label> Descriptions:</label>
                    <div class="input-group">
                        <div class="input-group-addon">
                            <i></i>
                        </div>
                        <textarea id="Descriptions" name="Descriptions" maxlength="500" class="form-control pull-right"></textarea>
                    </div><!-- /.input group -->
                </div><!-- /.form group -->

                <div>
                    <div class="box-footer">
                        <input type="hidden" name="Id" id="Id" value="@ViewBag.Id" />
                        <button type="submit" class="btn btn-primary" style=" width:80px;">Save</button>
                        <button type="reset" class="btn btn-primary" style=" width:80px;">Cancel</button>
                    </div>
                </div><!-- /.box -->

            </div><!-- /.box-body -->
        </div><!-- /.box -->
    </div><!-- /.col (left) -->

}

<script type="text/javascript">
    function ValidateForm() {
        RequiredTextbox("IMEI1", "Enter the IMEI No1");
        RequiredTextbox("Faults", "Enter the Faults");
        RequiredTextbox("Accessories", "Enter the Accessories");
        RequiredTextbox("Descriptions", "Enter the Descriptions");

        RequiredDropdown("Servicecenter", -1, "Select a Service center");
        RequiredDropdown("Servicetype", -1, "Select a Service type");
        @*if("@ViewBag.Id" == "")
        {
            RequiredTextbox("Username", "Enter the Username");
            RequiredTextbox("Password", "Enter the Password");
            ValidMinLength("Username", 6, "Username must be minimum 6 characters");
            ValidMinLength("Password", 6, "Password must be minimum 6 characters");
        }*@
        return AlertError();
    }
</script>

